import Home from "../pages/index/index.vue";
import Cart from "../pages/cart/index.vue";

import Category from "../pages/categorys/index.vue";

import Detail from '../pages/detail'
import CategorysList from '../pages/categorysList'
import Search from '../components/search'
import SearchList from '../pages/searchList'
import Categorys from "../pages/categorys";
import Order from '../pages/order'
import Personal from "../pages/personal/index.vue";
import Buy from "../pages/buy";
import Login from "../pages/login"


import Detail2 from '../components/detail'

import Commodity from "../pages/commodity"

// import Category from "../pages/Category";

export default [
	
	{
		name: "home",
		path: "/home",
		component: Home,
	},
	{
		name: "cart",
		path: "/cart",
		component: Cart,
	},

	{
		name: "categorys",
		path: "/categorys",

		component: Category,

		component: Categorys,


	},
	{
		name: "personal",
		path: "/personal",
		component: Personal,
	},
	{
		name: "buy",
		path: "/buy",
		component: Buy,
	},
	{
		name: "login",
		path: "/login",
		component: Login,

	},

	{
		name:"categoryslist",
		path:"/categoryslist",
		component:CategorysList,

	},
	{
		name:"search",
		path:"/search",
		component:Search,

	},
	{
		name: "searchlist",
		path: "/searchlist",
		component: SearchList,
	},
	{
		name:"detail",
		path:"/detail",
		component:Detail,
	},
	{
		name: "order",
		path: "/order",
		component: Order,
	},
	/* {
		name: "category",
		path: "/category",
		component: Category,
	}, */
	{
		name:"detail2",
		path:"/detail2",
		component:Detail2,

	},
	{
		path: "/",
		redirect: "/home",
	},
	{
		name: "commodity",
		path:'/commodity',
		component: Commodity,
		
	}
];
